package com.test.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.test.model.Mail;

public interface MailDao {
	@Insert("insert into T_B_MAIL(id,fro,recdate,user,content,subject) values(#{id},#{from},#{recdate},#{user},#{content},#{subject})")
	public void insert(Mail mail);
	@Select("select * from T_B_MAIL")
	public List<Map<String, Object>> getAllMail();
}
